package cn.com.mayue.guava.collections;

import com.google.common.collect.HashBasedTable;
import org.junit.Test;

/**
 * Created by mayue on 2016/12/22.
 */
public class HashBasedTableTest {
    @Test
    public void test() {
        //HashBasedTable<R,C,V> R 行，C 列，V 值
        HashBasedTable<String, String, String> table = HashBasedTable.create(2, 2);
        table.put("one", "name", "testOne");
        table.put("one", "age", "10");
        table.put("two", "name", "testTwo");
        table.put("two", "age", "20");

        System.out.println(table);
    }
}
